package com.wulian.common.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("sys_user_data_permission")
public class SysUserDataPermission  extends Model<SysUserDataPermission> {
	
	private static final long serialVersionUID = -858978679217684349L;

	@ApiModelProperty("主键id")
	@TableId(value = "sys_user_data_permission_id", type = IdType.AUTO)
    private Integer sysUserDataPermissionId;

    @ApiModelProperty("数据权限id")
    private Integer dataPermissionId;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("数据类型")
    private String dataType;

    @ApiModelProperty("创建人id")
    private Integer createId;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("编辑人id")
    private Integer updateId;

    @ApiModelProperty("编辑时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("删除标识: 0 正常 1 删除")
    private String delFlag;
	
	@Override
	protected Serializable pkVal() {
		return this.sysUserDataPermissionId;
	}

}
